package test

import (
	"gitee.com/slion/infra"
	"gitee.com/slion/infra/base"
	"github.com/tietang/props/ini"
	"github.com/tietang/props/kvs"
)

// 测试的初始化操作
func TestInit(){

	infra.StartRegister.RegisterStarter(&base.PropStarter{})
	infra.StartRegister.RegisterStarter(&base.DbxDatabaseStarter{})
	infra.StartRegister.RegisterStarter(&base.ValidatorStarter{})

	fileName := kvs.GetCurrentFilePath("../brun/config.ini", 1)
	file := ini.NewIniFileConfigSource(fileName)
	app := infra.New(file)
	app.Start()
}